﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" style="height: 100%">
<head>
    <title></title>
</head>
<body style="margin: 0px; padding: 0px; height: 100%">
    <div id="spliterDiv" style="width: 5px; height: 100%; overflow: hidden; cursor: pointer;
        font-size: 1px; left: 0px; top: 0px; position: absolute; vertical-align: middle"
        onclick="resizeFrames();">
        <div style="position: absolute; top: 50%; margin-top: -43px; left: 0px;">
            <img id="ImgArrow" alt="展开/关闭菜单" src="../../Images/to_left.gif" width="5" border="0"
                name="ImgArrow" />
        </div>
    </div>

    <script type="text/javascript">
        function resizeFrames() {
            var fs = parent.document.getElementsByTagName("frameset")[0];
            var imgArrow = document.getElementById("ImgArrow");
            if (fs.cols == "210,10,*") {
                fs.cols = "0,10,*";
                imgArrow.src = "../../Images/to_right.gif";
            }
            else {
                fs.cols = "210,10,*";
                imgArrow.src = "../../Images/to_left.gif";
            }
        }

        function getQueryString(name) {
            // 如果链接没有参数，或者链接中不存在我们要获取的参数，直接返回空     
            if (location.href.indexOf("?") == -1 || location.href.indexOf(name + '=') == -1) {
                return '';
            }
            // 获取链接中参数部分    
            var queryString = location.href.substring(location.href.indexOf("?") + 1);      // 分离参数对 ?key=value&key2=value2     
            var parameters = queryString.split("&");
            var pos, paraName, paraValue;
            for (var i = 0; i < parameters.length; i++) {
                // 获取等号位置         
                pos = parameters[i].indexOf('=');
                if (pos == -1) {
                    continue;
                }
                // 获取name 和 value         
                paraName = parameters[i].substring(0, pos);
                paraValue = parameters[i].substring(pos + 1);          // 如果查询的name等于当前name，就返回当前值，同时，将链接中的+号还原成空格         
                if (paraName == name) {
                    return unescape(paraValue.replace(/\+/g, " "));
                }
            }
            return '';
        }

        function SetShowTreeOrNot() {
            if (getQueryString("showtree") == "false") {
                resizeFrames();
            }
        }

        SetShowTreeOrNot();
        
    </script>

</body>
</html>
